package e.g;

import java.util.Date;

/**
 * <p>Title: ObjectVo</p>
 * <p>Description: </p>
 * <p>Email: yuyue_qty@163.com</p>
 * @author 晴天雨
 * @date 2016年9月15日上午11:59:26
 * @version 1.0
 */
public class ObjectVo {

    private String describe;             //类描述
    private String author;               //作者
    private String createTime;           //创建时间
    private String version;              //版本号
    private String javaPackagePath;      //java包路径
    private String javaPhysicsPath;      //java系统路径
    private String mapperPackagePath;    //mapper文件路径
    private String mapperPhysicsPath;    //mapper文件系统路径
    private String tableName;            //表名
    private String moduleName;           //模块名称
    
    public ObjectVo() {
    }
    
    @SuppressWarnings("deprecation")
	public ObjectVo(String author, String version) {
		this.author = author;
		this.version = version;
		this.createTime = new Date().toLocaleString();
	}

	@SuppressWarnings("deprecation")
    public ObjectVo(String describe, String author, String version) {
        this.describe = describe;
        this.author = author;
        this.createTime = new Date().toLocaleString();
        this.version = version;
    }

    public String getDescribe() {
        return describe;
    }

    public void setDescribe(String describe) {
        this.describe = describe;
    }

    public String getAuthor() {
        return author;
    }

    public void setAuthor(String author) {
        this.author = author;
    }

    public String getCreateTime() {
        return createTime;
    }

    public void setCreateTime(String createTime) {
        this.createTime = createTime;
    }

    public String getVersion() {
        return version;
    }

    public void setVersion(String version) {
        this.version = version;
    }

    public String getJavaPackagePath() {
        return javaPackagePath;
    }

    public void setJavaPackagePath(String javaPackagePath) {
        this.javaPackagePath = javaPackagePath
                + (".".equals(javaPackagePath.charAt(javaPackagePath.length() - 1)) ? ""
                        : ".");
    }

    public String getJavaPhysicsPath() {
        this.javaPhysicsPath = getJavaPackagePath().replace(".", "/");
        return javaPhysicsPath;
    }

    public void setJavaPhysicsPath(String javaPhysicsPath) {
        this.javaPhysicsPath = javaPhysicsPath;
    }

    public String getMapperPackagePath() {
        return mapperPackagePath;
    }

    public void setMapperPackagePath(String mapperPackagePath) {
        this.mapperPackagePath = mapperPackagePath
                + (".".equals(mapperPackagePath.charAt(mapperPackagePath
                        .length() - 1)) ? "" : ".");
    }

    public String getMapperPhysicsPath() {
        this.mapperPhysicsPath = getMapperPackagePath().replace(".", "/");
        return mapperPhysicsPath;
    }

    public void setMapperPhysicsPath(String mapperPhysicsPath) {
        this.mapperPhysicsPath = mapperPhysicsPath;
    }

    public String getTableName() {
        return tableName;
    }

    public void setTableName(String tableName) {
        this.tableName = tableName;
    }

    public String getModuleName() {
        return moduleName;
    }

    public void setModuleName(String moduleName) {
        this.moduleName = moduleName;
    }
    
}
